Christoph Reiter [Sun, 4 Mar 2018 10:10:20 +0000 (10:10 +0000)]
Merge branch 'gi-a11y' into 'master'
Include gtk/gtk-a11y.h in introspection file.
See merge request GNOME/gtk!43
Christoph Reiter [Sun, 4 Mar 2018 09:43:34 +0000 (09:43 +0000)]
Merge branch 'include-gtkstackaccessible' into 'master'
a11y: Include gtkstackaccessible.h in gtk-a11y.h
See merge request GNOME/gtk!41
Tomasz Miąsko [Sat, 3 Mar 2018 00:00:00 +0000 (00:00 +0000)]
Include gtk/gtk-a11y.h in introspection file.
The gir XML file contains description of types and functions from
gtk/gtk-a11y.h. Indicate that this header should be included in addition
to gtk/gtk.h in applications written in C. #56
Tomasz Miąsko [Sat, 3 Mar 2018 00:00:00 +0000 (00:00 +0000)]
a11y: Include gtkstackaccessible.h in gtk-a11y.h
Bruce Cowan [Fri, 2 Mar 2018 22:09:11 +0000 (22:09 +0000)]
Update British English translation
(cherry picked from commit
3059df0d4deb28875e3bd7c56c06f5c067264505)
Piotr Drąg [Fri, 2 Mar 2018 20:27:43 +0000 (21:27 +0100)]
Update POTFILES.skip
Piotr Drąg [Fri, 2 Mar 2018 20:26:21 +0000 (21:26 +0100)]
Update POTFILES.skip
Benjamin Otte [Sun, 25 Feb 2018 19:39:09 +0000 (20:39 +0100)]
gtk: Remove unused header files in gtk/ui/
Benjamin Otte [Mon, 26 Feb 2018 13:01:29 +0000 (14:01 +0100)]
entry: Remove cursor adjustment APIs
Benjamin Otte [Thu, 1 Mar 2018 00:08:05 +0000 (01:08 +0100)]
css: Parse hex colors with alpha value
The CSS color spec version 4 introduces this, support has hit Safari,
Chrome and Firefox, so this looks like a feature that's here to stay.
https://drafts.csswg.org/css-color/#hex-notation
Piotr Drąg [Thu, 1 Mar 2018 17:38:05 +0000 (18:38 +0100)]
Update POTFILES.in
Christoph Reiter [Thu, 1 Mar 2018 13:46:26 +0000 (13:46 +0000)]
Merge branch 'quartz-missing-config-include-gtk4' into 'master'
macos: Fix missing gdk symbol exports for gtk dnd
See merge request GNOME/gtk!39
Christoph Reiter [Thu, 1 Mar 2018 13:31:57 +0000 (14:31 +0100)]
macos: export gdk_quartz_drag_source_context()
It's used in the gtk dnd code but not exported in gdk.
Append a "_libgtk_only" suffix as with other internal exports and
export the symbol.
See #32
Emmanuele Bassi [Thu, 1 Mar 2018 10:09:22 +0000 (17:09 +0700)]
ci: Store the logs on build failure
We should save the logs directory when the CI pipeline fails, so that we
have a chance at debugging the failure.
Emmanuele Bassi [Thu, 1 Mar 2018 10:08:27 +0000 (17:08 +0700)]
ci: Update the configuration options
The options were renamed in commit
7b32900c5574.
Emmanuele Bassi [Thu, 1 Mar 2018 09:44:02 +0000 (16:44 +0700)]
xim: Use NULL-safe string comparison
The locale string may be NULL.
Matthias Clasen [Thu, 1 Mar 2018 06:38:39 +0000 (06:38 +0000)]
Merge branch 'wip/matthiasc/immodule-cleanup' into 'master'
Convert immodules to use an extension point
See merge request GNOME/gtk!34
Timm Bäder [Tue, 27 Feb 2018 14:13:14 +0000 (15:13 +0100)]
entry: Simplify cursor management
Since cursors are per-widget now and the icons are widgets, we can just
set the cursors once.
Christoph Reiter [Tue, 27 Feb 2018 18:53:43 +0000 (19:53 +0100)]
macos: Fix gdk_quartz_drag_context_get_dragging_info_libgtk_only symbol export
The header got included without config.h being included first which resulted in the
wrong _GDK_EXTERN macro being used. As a result some symbols weren't exported
and starting a DnD action would crash in the linker.
This patch adds config.h includes in all places where clang complained about
_GDK_EXTERN redefinitions.
See #32 for more info.
Patrick Griffis [Tue, 27 Feb 2018 18:42:28 +0000 (13:42 -0500)]
build: Error if no backends enabled
Timm Bäder [Tue, 27 Feb 2018 13:22:08 +0000 (14:22 +0100)]
gl: Make blur nodes with radius ∈ ]0; 1[
Otherwise, the radius here ends up being 0 and we don't draw anything at
all.
Timm Bäder [Tue, 27 Feb 2018 13:12:25 +0000 (14:12 +0100)]
gsk: Increase blur node bounds by blur radius
Otherwise, the resulting node will be too small and the result looks
clipped.
Timm Bäder [Tue, 27 Feb 2018 11:51:07 +0000 (12:51 +0100)]
tests: Add testblur
Timm Bäder [Tue, 27 Feb 2018 11:39:04 +0000 (12:39 +0100)]
scale: Remove priv pointer
Timm Bäder [Tue, 27 Feb 2018 10:45:34 +0000 (11:45 +0100)]
emojichooser: Only measure reference emoji once
Doing that once for every emoji is pretty slow and unnecessary as the
width does not change.
Timm Bäder [Tue, 27 Feb 2018 10:05:04 +0000 (11:05 +0100)]
entry: Add motion controller
Do the mouse cursor un-obscuring in the ::motion handler instead of in
the ->event handler. We don't get rid of the GtkWidgetClass::event
handler altogether that way, but it's a step in the right direction.
Timm Bäder [Mon, 26 Feb 2018 19:23:45 +0000 (20:23 +0100)]
spinbutton: Fold function into only caller
Timm Bäder [Mon, 26 Feb 2018 18:59:59 +0000 (19:59 +0100)]
spinbutton: Remove unused macro
Timm Bäder [Mon, 26 Feb 2018 17:06:04 +0000 (18:06 +0100)]
checkbutton: Don't reorder non-existent indicator widget
Timm Bäder [Mon, 26 Feb 2018 11:14:10 +0000 (12:14 +0100)]
entry: Check gdk_event_get_coords return value
We use the x/y values later on to decide what to do with the event.
Timm Bäder [Mon, 26 Feb 2018 11:29:11 +0000 (12:29 +0100)]
entry: Allocate icons at full height
Makes for a larger hit area for pointing devices. If vertical centering
is still desired, GtkWidget:halign can be set on the icon widgets.
Timm Bäder [Mon, 26 Feb 2018 07:42:38 +0000 (08:42 +0100)]
widget: Simplify set_style_context
No need to use widget->priv later if we already define a priv pointer
before.
Timm Bäder [Sun, 25 Feb 2018 10:29:33 +0000 (11:29 +0100)]
button: Remove priv pointer
This way we can also move the GtkButtonPrivate definition into
gtkbutton.c
Timm Bäder [Sat, 24 Feb 2018 09:49:44 +0000 (10:49 +0100)]
filechooserwidget: Make the location entry hexpand
Timm Bäder [Sat, 24 Feb 2018 09:49:30 +0000 (10:49 +0100)]
textview: Use content size when validating contents
Timm Bäder [Sat, 24 Feb 2018 07:40:41 +0000 (08:40 +0100)]
contentsformat: Avoid a GPtrArray
We know how many items this array will have in advance, so just malloc
enough.
Timm Bäder [Sat, 24 Feb 2018 06:56:48 +0000 (07:56 +0100)]
widget: Remove some unneeded prototypes
Matthias Clasen [Sun, 25 Feb 2018 02:44:03 +0000 (21:44 -0500)]
fix the build
Matthias Clasen [Sat, 24 Feb 2018 06:01:30 +0000 (01:01 -0500)]
Update docs for changed options
Matthias Clasen [Sat, 24 Feb 2018 05:51:00 +0000 (00:51 -0500)]
Update docs for immodules
Matthias Clasen [Fri, 23 Feb 2018 19:59:49 +0000 (14:59 -0500)]
Always include platform immodules
No need to load these as gio modules, we just include
them in libgtk.
Matthias Clasen [Mon, 19 Feb 2018 23:29:00 +0000 (18:29 -0500)]
Convert immodules to use an extension point
Add an extension point called gtk-im-module, which requires
the type GtkIMContext. Simplify the loading by using GIO
infrastructure. Drop the locale filtering for now, I don't
think it is really necessary nowadays.
Convert existing platform modules to gio modules.
Sill to do: Drop the conditional build machinery.
Either always include them, or never.
Matthias Clasen [Sat, 24 Feb 2018 06:02:17 +0000 (01:02 -0500)]
Don't mention papi in options docs
The papi print backend has been removed.
Matthias Clasen [Sat, 24 Feb 2018 05:44:21 +0000 (00:44 -0500)]
Add some debug output to print backend loading
Matthias Clasen [Sat, 24 Feb 2018 23:06:51 +0000 (18:06 -0500)]
README.md: Minor updates
Timm Bäder [Fri, 23 Feb 2018 21:14:38 +0000 (22:14 +0100)]
widget: Don't export propagate_hierarchy_changed
Timm Bäder [Fri, 23 Feb 2018 21:08:45 +0000 (22:08 +0100)]
widget: Simplify _set_name
No need for a new_name local variable here.
Timm Bäder [Fri, 23 Feb 2018 15:18:11 +0000 (16:18 +0100)]
button: Remove ::event handler
GRAB_BROKEN events cause the ::cancel handler of the gesture to be
emitted, which is where we also call gtk_button_do_release, so this
GtkWidget::event handler is unnecessary.
Timm Bäder [Fri, 23 Feb 2018 10:34:18 +0000 (11:34 +0100)]
widget: Correct translate_coordinate documentation
We write 0 to dest_x and dest_y nowadays if the two widgets do not have
a common ancestor.
GNOME Translation Robot [Fri, 23 Feb 2018 17:34:56 +0000 (17:34 +0000)]
Update Scottish Gaelic translation
(cherry picked from commit
f3f75f62e8e419b2e8cc6fcd243f12ee7b281e7d)
GNOME Translation Robot [Fri, 23 Feb 2018 17:25:08 +0000 (17:25 +0000)]
Update Scottish Gaelic translation
(cherry picked from commit
68eb897900b6ca8b5173c9d21ea122db7694069c)
Timm Bäder [Fri, 23 Feb 2018 16:03:53 +0000 (16:03 +0000)]
Merge branch 'text-view-measure' into 'master'
text-view: make measure() use the layout height
See merge request GNOME/gtk!37
Benjamin Otte [Fri, 23 Feb 2018 12:49:17 +0000 (13:49 +0100)]
vulkan: Don't quiet the compiler
This reverts
76461a8004caf4490f84140b0551d1f5296241f6.
We don't want to quiet the compiler here because new warnings should be
added to the enum the moment they become available.
Benjamin Otte [Fri, 23 Feb 2018 12:48:20 +0000 (13:48 +0100)]
vulkan: Add error strings for missing VkResults
Also, guard newer error returns with proper #if, so they don't trip up
older Vulkan versions.
Timm Bäder [Fri, 23 Feb 2018 10:08:53 +0000 (11:08 +0100)]
placessidebar: Don't create a GtkWindow for drag icons
Just use the drag_widget we create before, since GtkWindow drag icons
are not allowed anymore.
Timm Bäder [Fri, 23 Feb 2018 09:59:21 +0000 (10:59 +0100)]
range: Fix typo in allocate_trough
lower - upper results in something negative of course.
Timm Bäder [Fri, 23 Feb 2018 09:27:35 +0000 (10:27 +0100)]
widget: Improve warning for negative size_allocate dimensions
Print widget class, css node name and address.
Timm Bäder [Fri, 23 Feb 2018 09:42:09 +0000 (10:42 +0100)]
range: Fix coord/value translation
Save the x/y we allocated the slider at, which is different than
the coordinates we get from any of the widget allocation accessors.
Timm Bäder [Fri, 23 Feb 2018 07:40:27 +0000 (08:40 +0100)]
range: Compute slider allocation in update_initial_slider_position
Instead of outside at every call-site.
Timm Bäder [Fri, 23 Feb 2018 06:59:10 +0000 (07:59 +0100)]
range: Remove GtkScale special casing
This is unnecessary these days due to the negative margins of the
slider.
Timm Bäder [Thu, 22 Feb 2018 17:24:06 +0000 (18:24 +0100)]
range: Simplify allocate_trough
Timm Bäder [Thu, 22 Feb 2018 16:56:49 +0000 (17:56 +0100)]
range: Simplify compute_slider_position
Timm Bäder [Thu, 22 Feb 2018 16:13:05 +0000 (17:13 +0100)]
range: Fix coordinates in coord_to_value
The given coordinate needs to be trough-relative, since that's what the
slider is relative to. Also use the trough's content size and not the
outer size.
Timm Bäder [Tue, 20 Feb 2018 10:20:12 +0000 (11:20 +0100)]
range: Remove some unneeded includes
Timm Bäder [Tue, 20 Feb 2018 09:43:15 +0000 (10:43 +0100)]
range: Remove priv pointer
Timm Bäder [Tue, 20 Feb 2018 09:31:20 +0000 (10:31 +0100)]
range: Stop tracking mouse position
We have the mouse position available everywhere we want to use it
anyway, so use that instead.
Timm Bäder [Tue, 20 Feb 2018 09:16:00 +0000 (10:16 +0100)]
range: Stop tracking mouse location
Instead, just use gtk_widget_pick() to get the widget at the pointer
position whenever we need it.
Timm Bäder [Sat, 17 Feb 2018 14:25:06 +0000 (15:25 +0100)]
range: Don't call calc_slider() on value changes
calc_slider() updates the slider visibility, but that can only change if
the upper or lower change.
Timm Bäder [Sat, 17 Feb 2018 08:48:57 +0000 (09:48 +0100)]
range: Remove unnecessary queue_draw calls
Timm Bäder [Sat, 17 Feb 2018 08:29:45 +0000 (09:29 +0100)]
range: Remove scale special case
This is done automatically nowadays since the value is shown in a
widget.
Peter Bloomfield [Wed, 21 Feb 2018 13:22:42 +0000 (08:22 -0500)]
text-view: make measure() use the layout height
GtkTextView::measure should include the height of the text-layout in its
minimum and natural heights. This fixes scrolling when a text-view has a
scrolled-window ancestor that is not its immediate parent.
Emmanuele Bassi [Wed, 21 Feb 2018 12:07:37 +0000 (12:07 +0000)]
Merge branch 'gitlab-ci-run-gtk-tests' into 'master'
gitlab-ci: run parts of the test suite
See merge request GNOME/gtk!22
Emmanuele Bassi [Tue, 20 Feb 2018 13:19:31 +0000 (13:19 +0000)]
build: Do not eagerly disable checks on release builds
Release builds should only disable cast checks, to match what we used
to do back with the Autotools builds.
The Autotools build had an "--enable-debug=no" option, but that was
rarely used; Meson has debug, debugoptimized, release, and plain build
types, but we considered the "release" build types as the old "disable
all debugging code", which is not really accurate.
Disabling assertions and preconditon checks should be left to people
with constrained environments and/or packagers; they are supposed to
use the "plain" build type, and override the CFLAGS themselves.
Emmanuele Bassi [Tue, 20 Feb 2018 13:18:28 +0000 (13:18 +0000)]
build: Use get_supported_arguments()
Instead of checking each flag one by one, use the appropriate method of
the Meson compiler object.
Matthias Clasen [Mon, 19 Feb 2018 23:32:50 +0000 (18:32 -0500)]
Drop no-longer existing im modules
This was just dead code. The actual modules have already
been removed.
Christoph Reiter [Sat, 17 Feb 2018 10:55:40 +0000 (11:55 +0100)]
gitlab-ci: run parts of the test suite
This runs the tests in testsuite/{css,gtk,tools}
All others suites have failing tests and need more work.
Matthias Clasen [Mon, 19 Feb 2018 18:35:21 +0000 (18:35 +0000)]
Merge branch 'gtk-debug-flags-with-open-display-master' into 'master'
gtk_init: Fix debug flags handling when a display is already open
See merge request GNOME/gtk!27
Matthias Clasen [Mon, 19 Feb 2018 18:28:00 +0000 (18:28 +0000)]
Merge branch 'tests-set-schema-dir' into 'master'
tests: Make GSETTINGS_SCHEMA_DIR point to the compiled schemas in the build dir
See merge request GNOME/gtk!21
Christoph Reiter [Sun, 18 Feb 2018 09:34:52 +0000 (10:34 +0100)]
gtk_init: Fix debug flags handling when a display is already open
The code assigning the display to the debug_flags struct gets only
called when the default display changes, which never happens
when there already is one.
This makes it call the change callback in case a display is already
there.
The same fix was applied to gtk3 in !26 where calling gdk_init()
before gtk_init() would trigger this case. With gdk_init() gone
in master this is less likely to happen, but still possible
if gdk_display_open() is called before gtk_init().
See https://gitlab.gnome.org/GNOME/pygobject/issues/166
Matthias Clasen [Mon, 19 Feb 2018 02:54:43 +0000 (21:54 -0500)]
Remove some unused code
No more callers of _gtk_find_module.
Emmanuele Bassi [Mon, 19 Feb 2018 02:10:52 +0000 (02:10 +0000)]
Remove unused variable in the CUPS print backend
The variable is a leftover from when we were not using the
G_DEFINE_DYNAMIC_TYPE macro.
Emmanuele Bassi [Mon, 19 Feb 2018 02:08:02 +0000 (02:08 +0000)]
Fix the build in the Cloudprint print backend
Typos and re-declared functions.
Emmanuele Bassi [Mon, 19 Feb 2018 02:07:09 +0000 (02:07 +0000)]
Fix build of the lpr print backend
Some copy-and-paste from the CUPS print backend broke the build on
Continuous, where CUPS does not exist.
Emmanuele Bassi [Mon, 19 Feb 2018 02:06:11 +0000 (02:06 +0000)]
build: Fix checks on enabled print backends
The enabled print backends are a boolean, not a 'yes/no' string.
Matthias Clasen [Sun, 18 Feb 2018 23:14:18 +0000 (18:14 -0500)]
Fix the build
Matthias Clasen [Sun, 18 Feb 2018 23:00:42 +0000 (18:00 -0500)]
Convert print backends to use a GIOExtensionPoint
Use GIOModule and GIOExtensionPoint. This is the preferred
way to define extensions these days, instead of manually
implementing type modules.
Matthias Clasen [Sun, 18 Feb 2018 14:31:22 +0000 (09:31 -0500)]
Move the mixed module check function
This is only called in one place, move the function there.
Matthias Clasen [Sun, 18 Feb 2018 14:02:05 +0000 (09:02 -0500)]
Remove gtkmodules.h
We don't use these definitions anymore.
Also clean up the docs wrt to modules.
Matthias Clasen [Sun, 18 Feb 2018 13:50:45 +0000 (08:50 -0500)]
Stop loading modules
We no longer look at the GTK_MODULES environment variables.
With this commit, we stop loading general-purpose modules
altogether.
Matthias Clasen [Sun, 18 Feb 2018 13:31:31 +0000 (08:31 -0500)]
Stop using settings for modules
The Wayland backend was already not supporting this setting
since it is an XSetting that is not backed by a GSetting.
Drop this setting altogether, since we will stop supporting
general-purpose modules.
Christoph Reiter [Sun, 18 Feb 2018 10:48:23 +0000 (10:48 +0000)]
Merge branch 'master' into 'master'
Fix annotation for gtk_tree_view_is_blank_at_pos()
See merge request GNOME/gtk!13
Timm Bäder [Sun, 18 Feb 2018 08:08:47 +0000 (08:08 +0000)]
Merge branch 'master' into 'master'
gtkprintbackendcups.c: fix \n at end of a debugging note
See merge request GNOME/gtk!25
Daniel Boles [Wed, 1 Mar 2017 20:10:55 +0000 (20:10 +0000)]
TextLayout: Clarify implementation of special case
This exists to exit early for invisible lines. It attempts to use the
LineDisplay’s direction to create a corresponding PangoLayout. However,
the dir is not yet set by this point, & the display was new0()d, so its
dir is always 0 == TEXT_DIR_NONE. Thus, we always create an LTR layout.
Whatever the original intent, this outcome seems to be OK, so let’s make
the code say what it means, rather than using a misleading conditional.
https://bugzilla.gnome.org/show_bug.cgi?id=779099
Matthias Clasen [Sat, 17 Feb 2018 22:03:49 +0000 (17:03 -0500)]
calendar: Avoid warnings for new "%OB" format
Use the same code we have in gtk-3-22 to deal with strftime()
not supporting %OB, and avoid compiler warnings for non-literal
format strings.
Ivan Zakharyaschev [Sat, 17 Feb 2018 03:19:56 +0000 (06:19 +0300)]
gtkprintbackendcups.c: fix \n at end of a debugging note
(cherry picked from commit
7461ceebe34bfc6f882145e89e1ba2f187d08303)
(cherry picked from commit
d2a4febfa75182d36ffd48eb05e9054e8bf9cf53)
Piotr Drąg [Sat, 17 Feb 2018 16:22:50 +0000 (17:22 +0100)]
Update Polish translation
Christoph Reiter [Sat, 17 Feb 2018 08:48:12 +0000 (09:48 +0100)]
tests: Make GSETTINGS_SCHEMA_DIR point to the compiled schemas in the build dir
With autotools the schemas were compiled into each test suite directory
and the tests set GSETTINGS_SCHEMA_DIR to the test build directory.
With meson's gnome.compile_schemas() we can not define a target directory
so just make sure it is built in the gtk directory and set GSETTINGS_SCHEMA_DIR
to the gtk build directory when running the tests.
This makes the gtk+:gtk suite pass when no gtk is installed on the system.
Benjamin Otte [Sat, 17 Feb 2018 06:14:04 +0000 (07:14 +0100)]
vulkan: Keep track of command buffers
Fixes a rather large memleak.
Benjamin Otte [Wed, 14 Feb 2018 01:30:42 +0000 (02:30 +0100)]
cssimage: Get rid of draw vfunc
All remaining users of that vfunc now implement snapshot using cairo
render nodes (win32 and radial).
Also, GtkCssImageClass.snapshot is now NULL, so if a subclass doesn't
implement it, it will now crash.
Previously it would try to call the draw vfunc.
Timm Bäder [Fri, 16 Feb 2018 20:19:04 +0000 (21:19 +0100)]
adwaita: Move searchbar style to box child
This way, we avoid a 1px border at the bottom of the actual searchbar
widget and move it instead to the child of a GtkRevealer. Since we can
now use widgets with 0px height, we finally get rid of the 1px border
that was drawn even if the searchbar child was hidden.